package com.hongfeng.support.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hongfeng.support.model.common.BaseEntity;

/**
 * 
 * <角色类>
 *
 * @author llc
 * @date 创建时间：2012-12-5 下午04:39:23
 */
@Entity
@Table(name = "sys_role")
public class Role extends BaseEntity {

	private static final long serialVersionUID = -1554443915325522751L;

	@Id
	@GeneratedValue
	@Column(name = "id")
	private Long id;
	// 用户名
	@Column(name = "rolename", length = 20, nullable = false)
	private String roleName;
	// 是否有效
	@Column(name = "is_enable")
	private Short isEnable;
	// 备注
	@Column(name = "memo", length = 200)
	private String memo;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Short getIsEnable() {
		return isEnable;
	}

	public void setIsEnable(Short isEnable) {
		this.isEnable = isEnable;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}